package way.learning.zz.listener;


import way.learning.zz.event.AfterPollingCycleEvent;
import way.learning.zz.event.BeforePollingCycleEvent;

/**
 * BeforePollingCycleEvent或AfterPollingCycleEvent的监听器接口
 */
public interface PollCycleListener extends Rdp4jListener {

    /**
     * Invoked before each poll-cycle start.
     * 
     */
    void beforePollingCycle(BeforePollingCycleEvent event) throws InterruptedException;

    /**
     * Invoked after each poll-cycle end.
     * 
     */
    void afterPollingCycle(AfterPollingCycleEvent event) throws InterruptedException;

}
